package com.haredot.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.haredot.desensitize.JsonDesensitize;
import com.haredot.desensitize.enums.DesensitizeType;

import java.time.LocalDateTime;

public class OrderDetail {
    /**
     * 订单ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id ;
    /**
     * 申请人
     */
    private String name ;
    /**
     * 申请人手机号
     */
    @JsonDesensitize(type= DesensitizeType.TEL)
    private String tel ;
    /**
     * 班级
     */
    private String className ;
    /**
     * 生效时间
     */
    @JsonFormat(pattern = "yyyy/MM/dd")
    private LocalDateTime startTime ;
    /**
     * 审核人
     */
    private String teacherName ;
    /**
     * 截至时间
     */
    @JsonFormat(pattern = "yyyy/MM/dd")
    private LocalDateTime endTime ;
    /**
     * 是否有效
     */
    private Boolean effective ;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public LocalDateTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }

    public Boolean getEffective() {
        return effective;
    }

    public void setEffective(Boolean effective) {
        this.effective = effective;
    }
}
